Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding scopes "File", "Function", and "Class" for Python #710

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

maldil
Copy link

@maldil maldil commented Nov 12, 2024

The purpose of this PR is to add changes to support the File, Function, and Class scopes.

Summary of changes:

  1. src/cleanup_rules/python/scope_config.toml - Added a new file that defines scopes for Python.
  2. src/models/language.rs Updated to include the path for the scope file.
  3. test-resources/python/find_import_extend_method_chain - Created a new folder to hold resources for testing scope functionality.
  4. tests/tests.py - Modified to add new test cases and updated the paths to use absolute paths.

@CLAassistant
Copy link

CLAassistant commented Nov 12, 2024

CLA assistant check
All committers have signed the CLA.

@ketkarameya
Copy link
Collaborator

LGTM.
@dvmarcilio can we land this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants